package org.qqcui.designpattern.patterns.prototype.traditional;

/**
 * 克隆羊的客户端
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2020-10-18 10:11
 **/
public class Client {

	public static void main(String[] args) {
		Sheep sheep = new Sheep("Tom", 1, "白色");
		Sheep sheep2 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep3 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep4 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
		Sheep sheep5 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());

		System.out.println(sheep);
		System.out.println(sheep2);
		System.out.println(sheep3);
		System.out.println(sheep4);
		System.out.println(sheep5);
	}
}
